<%@ page language="java" import="java.util.*, com.zjut.an.news.manager.*, com.zjut.an.news.dao.*, 
com.zjut.zs.user.manager.*, com.zjut.zs.user.dao.*,com.zjut.zs.userstatus.manager.*, com.zjut.zs.userstatus.dao.*,
com.zjut.an.webclass.manager.*, com.zjut.an.webclass.dao.*,com.zjut.an.util.tools.*,com.zjut.an.util.system.*,
com.zjut.an.config.manager.*, com.zjut.an.config.dao.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">  
<meta name="renderer" content="webkit"> 
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/web.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
if (session.getAttribute("zsUser") == null&&session.getAttribute("admin") == null) {
	out.print("<script>alert('由于长时间未操作，系统已经自动注销，请重新登陆');</script>");
	out.print("<script>top.window.location='main.jsp';</script>");
} else {

AnConfigManager anconfig = (AnConfigManager) SpringContextUtil.getBean("AnConfigManager");
HTMLCreat html = (HTMLCreat) SpringContextUtil.getBean("HTMLCreat");
ZsUserManager umanager = (ZsUserManager) SpringContextUtil.getBean("ZsUserManager");
ZsUserStatusManager zsmanager = (ZsUserStatusManager) SpringContextUtil.getBean("ZsUserStatusManager");

ZsUser user = null;
if(session.getAttribute("admin")!=null && request.getParameter("usId")!=null) {
	String usId = request.getParameter("usId");
	user = umanager.getData(usId);
} else if (session.getAttribute("zsUser")!=null) {
	user = (ZsUser)session.getAttribute("zsUser");	
}	
ZsUserStatus userstatus = zsmanager.getDataByUser(user);

 %>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="index.jsp">首页</a></li>
    <li><a href="#">测试结果查询</a></li>
    </ul>
    </div>
    <div class="formbody">    
	    <div class="rightinfo">		    
			<!--单页面-->  
			<%
			out.print(userstatus.getTestNum()+"</br>");
			if(Status.PASSSTATUS_YES.getStatus().equals(userstatus.getPassStatus())) {
				out.print(anconfig.getSingleConfigInfoByName("综合测试通过显示"));
			} else if(Status.PASSSTATUS_NO.getStatus().equals(userstatus.getPassStatus())) {				
				out.print(anconfig.getSingleConfigInfoByName("综合测试未通过显示"));
			} 
			 %>
	    </div> 
    </div>
    
<%} %>
</body>

</html>
